package com.igeek.compus.backend.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@RequestMapping("view")
@Controller
public class PageController {


    @RequestMapping("{packageName}/{pageName}")
    @ResponseBody
    public ModelAndView getBasicPages(@PathVariable("packageName") String packageName,
                                      @PathVariable("pageName") String pageName) {

        return new ModelAndView(packageName + "/" + pageName);
    }

}
